package com.tsxy.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.apache.ibatis.ognl.CollectionElementsAccessor;

/**
 * <p>
 * 
 * </p>
 *
 * @author 飞
 * @since 2022-03-22
 */
@Getter
@Setter
@TableName("sys_college")
@ApiModel(value = "College对象", description = "")
public class College implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("主键id")
      @TableId(value = "id", type = IdType.AUTO)
      private Integer id;

      @ApiModelProperty("名称")
      private String name;

      @ApiModelProperty("父级id")
      private Integer pid;

      @ApiModelProperty("信息")
      private String detail;

      @ApiModelProperty("标签")
      private String tag;

      @TableField(exist = false)
      private List<College> children;

}
